//
//  Controller.h
//  amBXCocoa
//
//  Created by João Pedro Estilita Antunes on 23/11/09.
//  Copyright 2009 João Estilita. All rights reserved.
//  j.estilita@gmail.com
//

#import <Cocoa/Cocoa.h>
#import "USB_cocoa.h"


@interface Controller : NSObject {
	
	IBOutlet NSTextField *red_text;
	IBOutlet NSTextField *green_text;
	IBOutlet NSTextField *blue_text;	
	
	IBOutlet NSSlider *red_slider;
	IBOutlet NSSlider *green_slider;
	IBOutlet NSSlider *blue_slider;
	
	IBOutlet NSTextField *light_address_input;	
	
	IBOutlet NSTextField *status;	
	
	IBOutlet NSSegmentedControl *enable_button;
	
	IBOutlet NSButton *speaker_left;
	IBOutlet NSButton *washer_left;
	IBOutlet NSButton *washer_center;
	IBOutlet NSButton *washer_right;
	IBOutlet NSButton *speaker_right;
	
	IBOutlet NSSegmentedControl *illuminator_button;
	
	IBOutlet NSSlider *sleep_slider;
	IBOutlet NSSlider *brightness_slider;
	
	IBOutlet NSComboBox *temperature_comboBox;
	
	IBOutlet NSSlider *left_fan_slider;
	IBOutlet NSSlider *right_fan_slider;
	
	IBOutlet NSSlider *rumble_left_slider;
	IBOutlet NSSlider *rumble_right_slider;
	
	IBOutlet NSColorWell *color_well;
	
	USB_cocoa *usb;	
	
	NSThread *thread;
	
}


- (IBAction)opendevice:(id)sender;
- (IBAction)quit:(id)sender;
- (IBAction)sendvalues2selectedlights:(id)sender;
- (IBAction)sleepTimeControl:(id)sender;
- (IBAction)brightnessByteControl:(id)sender;
- (IBAction)temperatureControl:(id)sender;
- (IBAction)setFansSpeed:(id)sender;
- (IBAction)rumblePadSpeed:(id)sender;
- (IBAction)sendPanelColor2selectedlights:(id)sender;

- (void)sendAleatory;


@end
